package com.bsoft.gol.editor.editor.base;

import java.io.Serializable;
import java.util.Arrays;

/**
 * @Description
 * @Author:FangZhiyi
 * @Data Created in 2019/4/28 17:39
 * @Moddified By:
 */
public class IMExtBody<T> implements Serializable {
    private String[] visibleUserName;//可见用户列表
    private String[] unVisibleUserName;//不可见用户列表，预留字段，暂时不用
    private int displayStyle;//显示样式 1.普通文本消息 2.系统消息（白底灰字） 3.自定义消息  4.问诊结束样式
    private int contentType;//自定义消息内容类型 1订单详情 2就诊记录  3.处方详情 4.去评价 5.评价详情
    private T details;//内容
    private String jumpUrl;//跳转路径，预留字段，暂时不用
    private IMMessageUserInfo userInfo;//发送消息者用户信息

    public String[] getVisibleUserName() {
        return visibleUserName;
    }

    public void setVisibleUserName(String[] visibleUserName) {
        this.visibleUserName = visibleUserName;
    }

    public String[] getUnVisibleUserName() {
        return unVisibleUserName;
    }

    public void setUnVisibleUserName(String[] unVisibleUserName) {
        this.unVisibleUserName = unVisibleUserName;
    }

    public int getDisplayStyle() {
        return displayStyle;
    }

    public void setDisplayStyle(int displayStyle) {
        this.displayStyle = displayStyle;
    }

    public int getContentType() {
        return contentType;
    }

    public void setContentType(int contentType) {
        this.contentType = contentType;
    }

    public T getDetails() {
        return details;
    }

    public void setDetails(T details) {
        this.details = details;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }

    public IMMessageUserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(IMMessageUserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @Override
    public String toString() {
        return "IMExtBody{" +
                "visibleUserName=" + Arrays.toString(visibleUserName) +
                ", unVisibleUserName=" + Arrays.toString(unVisibleUserName) +
                ", displayStyle=" + displayStyle +
                ", contentType=" + contentType +
                ", details=" + details +
                ", jumpUrl='" + jumpUrl + '\'' +
                ", userInfo=" + userInfo +
                '}';
    }
}
